package com.no1.musicmgr.controller;


import com.no1.musicmgr.service.UserAnalysisService;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@Log4j
@Tag(name="UserAnalysisController",description = "用户数据分析模块")
public class UserAnalysisController {
    @Autowired
    private UserAnalysisService userAnalysisService;

    @GetMapping("/user/analysis")
    public HashMap<String, Object> getUserAnalysisData() {
        log.info("getUserAnalysisData:"+userAnalysisService.getUserAnalysisData());
        return userAnalysisService.getUserAnalysisData();
    }
}
